package com.easy.service;

import com.easy.bean.Category;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ICategoryService {
    int add(Category category);
    int delete(int cateid);
    int edit(Category category);
    Category getById(int cateid);
    List<Category> getList(Page page, String text);
    List<Category> getChildren(int parentid);
    List<Category> getParent(int cateid);
    int getCount(String text);

    List<Category> chart1();
    List<Category> chart2();
}
